#include <iostream>
#include <vector>
using namespace std;

const int numbers=3;
inline int sum(int partialsum,int data){return partialsum + data; };

int main()
{
   int i; 
   vector<int> data(numbers);
   // data[0] this will be the sum 
 
   for(i = 1; i < numbers; ++i)
     {
           data[i] = i;
           data[0]=sum(data[0],data[i]);
      }
   cout<<"sum is:"<<data[0];
   return 0;
}
